package cn.tx.service.Impl;

import cn.tx.dao.LibraryUserDao;
import cn.tx.model.Grade;
import cn.tx.model.LibraryUser;
import cn.tx.service.LibraryUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class LibraryUserServiceImpl implements LibraryUserService {

    @Autowired
    private LibraryUserDao libraryUserDao;

    @Override
    public List<LibraryUser> findList(Map<String, Object> querymap) { return libraryUserDao.findList(querymap);}

    @Override
    public List<LibraryUser> findAll() {
        return libraryUserDao.findAll();
    }

    @Override
    public int findTotal(Map<String, Object> querymap) {
        return libraryUserDao.findTotal(querymap);
    }

    @Override
    public int UpdateLibraryUserById(LibraryUser libraryUser) { return libraryUserDao.UpdateLibraryUserById(libraryUser); }

    @Override
    public int delete(String ids) {
        return libraryUserDao.delete(ids);
    }

    @Override
    public int addLibraryUser(LibraryUser libraryUser) { return libraryUserDao.addLibraryUser(libraryUser); }

    @Override
    public LibraryUser findByName(String name) { return libraryUserDao.findByName(name); }

    @Override
    public LibraryUser findByUserName(String username) {
        return libraryUserDao.findByUserName(username);
    }

}
